package car.aistar.dao;

import car.aistar.dto.BrandAndPrice;
import car.aistar.dto.TqxCarInfo;
import car.aistar.dto.TqxCarSelect;
import car.aistar.entity.PriceCut;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 本类用来：
 *
 * @ClassName tqx_CarInfoDao
 * @Author tqx
 * @Date 2020/10/2 16:06
 */
public interface TqxCarInfoDao {

    List<TqxCarInfo> findCarInfo(TqxCarSelect tqxCarSelect);

    /**tqx
     *@Description //最新上架
     *@Date 18:24 2020/10/7
     *@Param
     *@return
     **/
    List<TqxCarInfo> findNew(TqxCarSelect tqxCarSelect);

    List<BrandAndPrice> findCarPrice();

    @Select("select * from price_cut where car_id=#{value}")
    List<PriceCut> findPriceCut(Integer carId);

}
